package com.easy.frame.base.basic.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 树状图基类
 *
 * @author tp
 * @date 2020/12/31 11:09
 */
@Getter
@Setter
@ToString
public abstract class BaseTypePO implements Serializable {

    private Long id;

    @ApiModelProperty("租户ID")
    private Long tenantId;

    @ApiModelProperty("项目ID")
    private Long projectId;

    @ApiModelProperty("设备编号")
    private String code;

    @ApiModelProperty("设备名称")
    private String name;

    @ApiModelProperty("长编码")
    private String path;

    @ApiModelProperty("父级长编码")
    private String parentPath;

    @ApiModelProperty("层级")
    private Integer level;

    @ApiModelProperty("排序")
    private Integer seq;

    @ApiModelProperty("是否叶节点 [0否 1是]")
    private Boolean isLeafNode;

    @ApiModelProperty("重要等级")
    private String importLevel;

    @ApiModelProperty("企业是否启用 [0禁用 1启用]，默认是1启用")
    private Integer tenantEnabled;

    @ApiModelProperty("启用状态 [0禁用 1启用]")
    private Integer enabled;

    @ApiModelProperty("设备设施类型")
    private Integer equipmentType;
}
